<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Report extends Model
{
    use HasFactory;
    protected $fillable=['user_id','be_reported_user_id','comment_id','write_id'];


    public function user(){
        return $this->belongsTo(User::class,'user_id','id');
    }
    public function write(){
        return $this->belongsTo(Write::class,'write_id','id');
    }
    public function comment(){
        return $this->belongsTo(Comment::class,'comment_id','id');
    }
//    public function

}
